<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>label标签</title>
</head>
<body>
性别
<input type="radio" name="sex" id="nan"><label for="nan">男</label>
<label><input type="radio" name="sex" id="n">女</label>
</body>
</html>